package com.fsserver.common.api;

/**
 * 结果状态码
 * Result status code
 *
 * @author fsserver
 */
public interface ResultCode {
    /**
     * 成功
     * Success
     */
    Integer SUCCESS = 200;

    /**
     * 参数错误
     * Parameter error
     */
    Integer PARAM_ERROR = 400;

    /**
     * 未授权
     * Unauthorized
     */
    Integer UNAUTHORIZED = 401;

    /**
     * 禁止访问
     * Forbidden
     */
    Integer FORBIDDEN = 403;

    /**
     * 资源不存在
     * Resource not found
     */
    Integer NOT_FOUND = 404;

    /**
     * 方法不允许
     * Method not allowed
     */
    Integer METHOD_NOT_ALLOWED = 405;

    /**
     * 请求超时
     * Request timeout
     */
    Integer TIMEOUT = 408;

    /**
     * 系统错误
     * System error
     */
    Integer SYSTEM_ERROR = 500;

    /**
     * 服务不可用
     * Service unavailable
     */
    Integer SERVICE_UNAVAILABLE = 503;
} 